#include <iostream>
#include <string>

using namespace std;
class xz
{
public:
    string addStrings(string num1, string num2)
    {
        int i = num1.size() - 1, j = num2.size() - 1, add = 0;
        string ans = "";
        while (i >= 0 || j >= 0 || add != 0)
        {
            int x = i >= 0 ? num1[i] - '0' : 0;
            int y = j >= 0 ? num2[j] - '0' : 0;
            int sum = x + y + add;
            ans.push_back('0' + sum % 10);
            add = sum / 10;
            --i; --j;
        }
        reverse(ans.begin(), ans.end());
        return ans;
    }
};

int main()
{
    xz a;
    string s1 = "23536";
    string s2 = "1552";
    string N = a.addStrings(s1, s2);
    cout << N<<endl;
    return 0;
}